#ifndef MAINGRAPHICSVIEW_H
#define MAINGRAPHICSVIEW_H
#include <QGraphicsView>
#include <QWheelEvent>
class MainGraphicsView : public QGraphicsView
{
    Q_OBJECT
public:
    MainGraphicsView(QWidget* parent = nullptr);

public:
    // 重写滚轮事件，实现缩放
    void wheelEvent(QWheelEvent* event) override;

signals:
    void wheelScale();
};

#endif // MAINGRAPHICSVIEW_H
